﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="/Resource/Jquery/jquery-1.10.2.js"></script>
    <script src="/Resource/Video/PopuVideoWindow.js"></script>
</head>
<body>
    
</body>
</html>
<script type="text/javascript">
    $(function () {

        var a = $("<a id='a1'></a>");
        $("body").append(a);

        var link = GetQueryString("link");
        
        $("#a1").attr("href", link);
        $("#a1").popuVideoModalWindow(true);
        $("#a1").click();
    })

    function GetQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]); return null;
    };
</script>
